﻿<Window x:Class="DocumentManagement.Views.ShowItemFileIn"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:DocumentManagement.ViewsModels"
        Title="ShowItemFileIn" Height="278" Width="531" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <vm:ShowItemFileInViewsModel x:Key="showItemFileInViewsModel"/>
    </Window.Resources>
    <Grid DataContext="{Binding Source={StaticResource showItemFileInViewsModel}}">
        <DataGrid AutoGenerateColumns="False" Height="178" HorizontalAlignment="Left" Margin="12,49,0,0" Name="dataGrid1" VerticalAlignment="Top" Width="485" FontFamily="Tahoma" FontSize="14" IsReadOnly="True" FontWeight="Normal">
            <DataGrid.Columns>
                <!--<DataGridTextColumn Binding="{Binding Path=ReceiveAttachedFileID, Mode=TwoWay}" Header="รหัสไฟล์" />-->
                <!--<DataGridTextColumn Binding="{Binding Path=FileName, Mode=TwoWay}" Header="ชื่อไฟล์" />-->
                <DataGridHyperlinkColumn Binding="{Binding Path=FileName, Mode=TwoWay}" Header="ชื่อไฟล์">
                    <DataGridHyperlinkColumn.ElementStyle>
                        <Style>
                            <EventSetter Event="Hyperlink.Click" Handler="DG_Hyperlink_Click"/>
                        </Style>
                    </DataGridHyperlinkColumn.ElementStyle>
                </DataGridHyperlinkColumn>
                <!--<DataGridTemplateColumn Header="ดาวน์โหลดไฟล์">
                              
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate >
                                        <Button Content="ดาวน์โหลด" Height="23" Name="DownloadButton" Width="75" Click="DownloadButton_Click" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>-->
            </DataGrid.Columns>
        </DataGrid>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="185,12,0,0" Name="textBlock1" Text="รายการไฟล์หนังสือเข้า" VerticalAlignment="Top" FontSize="16" FontFamily="Tahoma" FontWeight="Bold" />
    </Grid>
</Window>
